import request from '../utils/request' // 添加拦截器

// 提升机统计个数
export function fetchElevatorCounts(query) {
  return request({
    url: '/analysis-mang/elevator/counts/',
    method: 'get',
    params: query
  })
}

// 提升机健康信息
export function fetchElevatorHealth(query) {
  return request({
    url: '/analysis-mang/elevator/health/',
    method: 'get',
    params: query
  })
}
// 罐笼健康信息
export function fetchCageHealth(query) {
  return request({
    url: '/analysis-mang/elevator/cage/health/',
    method: 'get',
    params: query
  })
}

//  罐笼速度信息
export function fetchCageSpeed(query) {
  return request({
    url: '/analysis-mang/elevator/cage/speeds/',
    method: 'get',
    params: query
  })
}

/**
 * 根据不同的资产装置显示不同的资产总览
 */
export function fetchAssetOverview(query) {
  return request({
    url: '/organizer/equipments/list/',
    method: 'get',
    params: query
  })
}

/**
 * 资产健康信息
 */
export function fetchAssethealtch(query) {
  return request({
    url: '/analysis-mang/equip/health/realtime/',
    method: 'get',
    params: query
  })
}

/**
 * 资产健康趋势
 */
export function fetchAssHealtchTrend(query) {
  return request({
    url: '/analysis-mang/equip/health/history/',
    method: 'get',
    params: query
  })
}

/**
 * 故障预测信息
 */
export function fetchFailurePrediction(query) {
  return request({
    url: '/analysis-mang/equip/predictions/',
    method: 'get',
    params: query
  })
}

/**
 * 查询资产组件图上信息
 */
export function fetchAssetModule(query) {
  return request({
    url: '/analysis-mang/equip/configurations/',
    method: 'get',
    params: query
  })
}

/**
 * 获取资产装置组态图相关信息(图片+点位信息)
 */
export function fetchAssetbgSet(query) {
  return request({
    url: '/organizer/equipments/bg-set/detail/',
    method: 'get',
    params: query
  })
}

/**
 *
 * @param {*} query
 * @returns
 */
 export function fetchSetAll(query) {
  return request({
    url: '/analysis-mang/equip/configurations/all/',
    method: 'get',
    params: query
  })
}

/**
 * 调绳距离信息
 */
export function fetchRepoDistance(query) {
  return request({
    url: '/analysis-mang/elevator/cage/distances/',
    method: 'get',
    params: query
  })
}

/**
 * 副井提升机获取综合数据接口
 */
export function fetchSynthesizeData(query) {
  return request({
    url: '/analysis-mang/elevator/cage/tech-param/',
    method: 'get',
    params: query
  })
}

